<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class AdminPassword extends Validate
{
    protected $rule = [
        'old' => 'require',
        'password' => 'require|min:6|confirm'
    ];

    protected $message = [
        'old.require' => '请填写原密码',
        'password.require' => '请填写新密码',
        'password.min' => '新密码至少六位',
        'password.confirm' => '确认密码不相符'
    ];
}